package com.github.pig.admin.service.appCommon;

import com.baomidou.mybatisplus.service.IService;
import com.github.pig.admin.model.entity.SysUser;
import com.github.pig.admin.util.AjaxJson;
import com.github.pig.common.util.ResponseUtil;

import java.util.Map;

/**
 * app接口通用service层
 */
public interface AppService extends IService<SysUser> {

    /**
     * 上传文件通用方法
     * @return
     */
    ResponseUtil uploadFile(Map<String,Object> param,String loginName);

    /**
     * 发送验证码
     * @param mobile 手机号
     * @return R
     */
    ResponseUtil sendSmsCode(String mobile);

    AjaxJson bindOpenId(String openId, String mobile, String code, AjaxJson json);

    void unBindOpenId(String loginName);

    AjaxJson bindOpenId(String openId, int userId, AjaxJson json);
}
